package org.happycomp.radio.planner;

import java.util.Date;

import org.happycomp.radio.ProcessStates;
import org.happycomp.radio.Station;
import org.happycomp.radio.StopDownloadCondition;

/**
 * Naplanovana uloha
 * @author pavels
 */
public class PlannedItem {
	
	private String id;
	private String title;
	private Station station;
	private StopDownloadCondition condition;
	private Date plannedDate;
	
	private ProcessStates state = ProcessStates.PLANNED;
	
	public PlannedItem(Station station, StopDownloadCondition condition, String id, String title, Date plannedDate) {
		super();
		this.station = station;
		this.condition = condition;
		this.id = id;
		this.title = title;
		this.plannedDate = plannedDate;
	}

	public Station getStation() {
		return station;
	}

	public StopDownloadCondition getCondition() {
		return condition;
	}

	public Date getPlannedDate() {
		return plannedDate;
	}

	
	public String getId() {
		return id;
	}
	
	public String getTitle() {
		return title;
	}
	
	public ProcessStates getProcessState() {
		return this.state;
	}

	@Override
	public String toString() {
		return "["+this.title+"] "+this. station+","+this.state;
	}
	
	
}
